package beans

import models.SuperUserM

data class SuperUser(
        val id: Int,
        val username: String,
        val email: String,
        val phone: String
) {
    companion object{
        fun fromModel(model: SuperUserM): SuperUser{
            return SuperUser(
                    id = model.getInt(SuperUserM.ID),
                    username = model.get(SuperUserM.USERNAME),
                    email = model.get(SuperUserM.EMAIL),
                    phone = model.get(SuperUserM.PHONE)
            )
        }
    }
}